package com.qinggeng.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qinggeng.project.api.dto.OrdersDistAddressDto;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 吴鹏飞
 * @date 2020/9/22
 */
@Data
public class OrdersDist {
    //订单ID
    private Long ordersId;

    //订单编号
    private String ordersNo;

    //预计到达时间
    private String arriveTime;
    //配送费
    private BigDecimal distPrice;
    //订单提成
    private BigDecimal percentage;
    //取货地址
    private OrdersDistAddressDto pickAddress;
    //送货地址
    private OrdersDistAddressDto sendAddress;
    //备注
    private String remark;

    //状态
    private Integer status;
    //送达时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    private String distType;

    private String distStatus;
    private String nickName;

    private String avatar;

    private BigDecimal totalPrice;

    private List<OrdersGoods> ordersGoodsList;

    private List<OrdersGift> ordersGiftList;

    //配送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date distDateTime;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
